

import 'package:flutter/cupertino.dart';
import 'package:flutterdemo/day10/model/user_model.dart';

class JKUserViewModel with ChangeNotifier {
  UserModel _userModel;

  JKUserViewModel(this._userModel);

  UserModel get userModel => _userModel;

  set userModel(UserModel value) {
    _userModel = value;

    /* 通知所有的监听 */
    notifyListeners();
  }

}

